/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.topcased.SimplePDL;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Resource</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link org.topcased.SimplePDL.Resource#getWorkDefinition <em>Work Definition</em>}</li>
 *   <li>{@link org.topcased.SimplePDL.Resource#getOccurrences <em>Occurrences</em>}</li>
 *   <li>{@link org.topcased.SimplePDL.Resource#getType <em>Type</em>}</li>
 * </ul>
 * </p>
 *
 * @see org.topcased.SimplePDL.SimplePDLPackage#getResource()
 * @model
 * @generated
 */
public interface Resource extends EObject {
	/**
	 * Returns the value of the '<em><b>Work Definition</b></em>' reference.
	 * It is bidirectional and its opposite is '{@link org.topcased.SimplePDL.WorkDefinition#getNeededResources <em>Needed Resources</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Work Definition</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Work Definition</em>' reference.
	 * @see #setWorkDefinition(WorkDefinition)
	 * @see org.topcased.SimplePDL.SimplePDLPackage#getResource_WorkDefinition()
	 * @see org.topcased.SimplePDL.WorkDefinition#getNeededResources
	 * @model opposite="neededResources" required="true"
	 * @generated
	 */
	WorkDefinition getWorkDefinition();

	/**
	 * Sets the value of the '{@link org.topcased.SimplePDL.Resource#getWorkDefinition <em>Work Definition</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Work Definition</em>' reference.
	 * @see #getWorkDefinition()
	 * @generated
	 */
	void setWorkDefinition(WorkDefinition value);

	/**
	 * Returns the value of the '<em><b>Occurrences</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Occurrences</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Occurrences</em>' attribute.
	 * @see #setOccurrences(int)
	 * @see org.topcased.SimplePDL.SimplePDLPackage#getResource_Occurrences()
	 * @model required="true"
	 * @generated
	 */
	int getOccurrences();

	/**
	 * Sets the value of the '{@link org.topcased.SimplePDL.Resource#getOccurrences <em>Occurrences</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Occurrences</em>' attribute.
	 * @see #getOccurrences()
	 * @generated
	 */
	void setOccurrences(int value);

	/**
	 * Returns the value of the '<em><b>Type</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Type</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Type</em>' reference.
	 * @see #setType(ResourceType)
	 * @see org.topcased.SimplePDL.SimplePDLPackage#getResource_Type()
	 * @model required="true"
	 * @generated
	 */
	ResourceType getType();

	/**
	 * Sets the value of the '{@link org.topcased.SimplePDL.Resource#getType <em>Type</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Type</em>' reference.
	 * @see #getType()
	 * @generated
	 */
	void setType(ResourceType value);

} // Resource
